Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Menu Manager >

Mac OS 8 Menu Manager Reference


Menu Definition IDs

A menu definition ID is supplied to the menu resource 'MENU' or a menu-creation function such as NewMenu to specify which menu definition function to use in creating the menu. The menu definition ID contains the resource ID of the menu definition function.

Menu definition IDs are changed with Appearance Manager 1.0 to support Appearance-compliant menus and menu bars. When mapping is enabled, the pre-Appearance menu definition ID textmenuProc will be mapped to kMenuStdMenuProc , its Appearance-compliant equivalent.

enum {
    textmenuProc        = 0,
    kMenuStdMenuProc    = 63,
    kMenuStdMenuBarProc = 63
};

Constant descriptions

textmenuProc
The menu definition ID for menus that are not Appearance-compliant.
kMenuStdMenuProc
The menu definition ID for Appearance-compliant menus. Available with Appearance Manager 1.0 and later.
kMenuStdMenuBarProc
The menu bar definition ID for Appearance-compliant menu bars. Available with Appearance Manager 1.0 and later.

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |